package presencial2011;
import java.util.Scanner;

public class SumaDeDigitos {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		long operando = Long.parseLong(scan.nextLine());
		// System.out.println(Math.pow(10,9));
		while (operando >= 0) {
			if (operando <= Math.pow(10, 9)) {
				sumar(operando);
			}
			operando = Long.parseLong(scan.nextLine());
		}
	}

	private static void sumar(long operando) {
		long aux = 0;
		String sol = "";
		if (operando == 0) {
			System.out.println(operando + " = " + operando);
		} else {
			while (operando > 0) {
				aux = aux + operando % 10;
				//System.out.println(operando % 10);
				sol += (operando / 10) == 0 ? operando % 10 + "" : operando
						% 10 + "";
				operando = operando / 10;
			}

			for (int i = sol.length() - 1; i >= 0; i--) {
				System.out.print((i) == 0 ? sol.charAt(i) + " = " : sol
						.charAt(i) + " + ");
			}
			System.out.println(aux);
		}
	}

}
